﻿#pragma once

class Lunar;
class Foto
{
public:
	/// <summary>
	/// 佛涅磐年
	/// </summary>
	static	const int DEAD_YEAR = -543;

	/// <summary>
	/// 阴历
	/// </summary>
	Lunar& getLuanr();

	/// <summary>
	/// 初始化
	/// </summary>
	/// <param name="lunar">阴历</param>
	Foto(Lunar* lunar);


	/// <summary>
	/// 初始化
	/// </summary>
	/// <param name="lunar">阴历</param>
	/// <returns>佛历</returns>
	static Foto* FromLunar(Lunar* lunar);

	/// <summary>
	/// 初始化
	/// </summary>
	/// <param name="lunarYear">阴历年</param>
	/// <param name="lunarMonth">阴历月</param>
	/// <param name="lunarDay">阴历日</param>
	/// <param name="hour">小时</param>
	/// <param name="minute">分钟</param>
	/// <param name="second">秒钟</param>
	/// <returns>佛历</returns>
	static Foto* FromYmdHms(int lunarYear, int lunarMonth, int lunarDay, int hour = 0, int minute = 0, int second = 0);



private:
	Lunar* _lunar;

};

